Skip to contentSkip to conversation

RTNETLINK answers: Invalid argument

LARTC Michal Kolesar 13 participants 17 messages Jun 19, 2001 – Apr 3, 2005

lore
Share & tools
lore
#0 lore raw

Hi all,

I have installed 2.4.5 kernel, Debian Potato.

my tc script:
#!/bin/bash

tc qdisc add dev eth1 root handle 20: cbq bandwidth 10Mbit avpkt 1000
echo root
tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit rate \
10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000
echo class
tc class add dev eth1 parent 20:1 classid 20:100 cbq bandwidth 10Mbit rate \
5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \
bounded
echo 100
tc class add dev eth1 parent 20:1 classid 20:200 cbq bandwidth 10Mbit rate \
5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \
bounded
echo 200
tc qdisc add dev eth1 parent 20:100 sfq quantum 1514b perturb 15
echo sfq100
tc qdisc add dev eth1 parent 20:200 sfq quantum 1514b perturb 15
echo sfq200
tc filter add dev eth1 parent 20:0 prio 25 u32 match ip src 192.168.0.7 flowid 20:100 echo filter100
tc filter add dev eth1 parent 20:0 prio 50 u32 match ip src 192.168.0.0/24 flowid 20:100 echo filter200

after running my tc script:
0 root@gateway:/root# source /etc/init.d/tc
root
class
100
200
sfq100
sfq200
RTNETLINK answers: Invalid argument
filter100
RTNETLINK answers: Invalid argument
filter200

my kernel .config file is attached.

Thank you for help!

kolisko

#1 lore raw

Hello,

is here somebody who can help me?
Where is the best place (mailinglist) for tc troubleshoting? Or if You need some another information tell me please.

iptables-1.2.2 - from original sources

ip utility, iproute2-ss991023 - from debian potato distribution

I am newbie I dont have experiences with tc.

What is wrong?

Thank You!
kolisko
----- Original Message -----
From: Michal Kolesar
To: [email protected]
Sent: Tuesday, June 19, 2001 12:38 PM
Subject: [LARTC] RTNETLINK answers: Invalid argument

Hi all,

I have installed 2.4.5 kernel, Debian Potato.

my tc script:
#!/bin/bash

tc qdisc add dev eth1 root handle 20: cbq bandwidth 10Mbit avpkt 1000 echo root
tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit rate \
10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000
echo class
tc class add dev eth1 parent 20:1 classid 20:100 cbq bandwidth 10Mbit rate \
5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \
bounded
echo 100
tc class add dev eth1 parent 20:1 classid 20:200 cbq bandwidth 10Mbit rate \
5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \
bounded
echo 200
tc qdisc add dev eth1 parent 20:100 sfq quantum 1514b perturb 15
echo sfq100
tc qdisc add dev eth1 parent 20:200 sfq quantum 1514b perturb 15
echo sfq200
tc filter add dev eth1 parent 20:0 prio 25 u32 match ip src 192.168.0.7 flowid 20:100 echo filter100
tc filter add dev eth1 parent 20:0 prio 50 u32 match ip src 192.168.0.0/24 flowid 20:100 echo filter200

after running my tc script:
0 root@gateway:/root# source /etc/init.d/tc
root
class
100
200
sfq100
sfq200
RTNETLINK answers: Invalid argument
filter100
RTNETLINK answers: Invalid argument
filter200

my kernel .config file is attached.

Thank you for help!

kolisko

#2 lore raw
In reply to Michal Kolesar
Quoted 1 line · Michal Kolesar

my kernel .config file is attached.

I don't see any problems in your script at first sight. Are you sure you enabled the u32 filter in the kernel? I wasn't able to view it because your mail agent defined the mime type as octetstream/application.

Could you please fix that and check the QoS settings. They should like like:

#
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
CONFIG_NETLINK=y
CONFIG_RTNETLINK=y
CONFIG_NET_SCH_CBQ=y
CONFIG_NET_SCH_CSZ=y
CONFIG_NET_SCH_PRIO=y
CONFIG_NET_SCH_RED=y
CONFIG_NET_SCH_SFQ=y
CONFIG_NET_SCH_TEQL=y
CONFIG_NET_SCH_TBF=y
CONFIG_NET_SCH_GRED=y
CONFIG_NET_SCH_DSMARK=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_NET_QOS=y
CONFIG_NET_ESTIMATOR=y
CONFIG_NET_CLS=y
CONFIG_NET_CLS_TCINDEX=y
CONFIG_NET_CLS_ROUTE4=y
CONFIG_NET_CLS_ROUTE=y
CONFIG_NET_CLS_FW=y
CONFIG_NET_CLS_U32=y
CONFIG_NET_CLS_RSVP=y
CONFIG_NET_CLS_RSVP6=y
CONFIG_NET_CLS_POLICE=y

Regards.

Signature · 8 lines
GnuPG public key: http://www.keyserver.net
fingerprint = A3C4 DE50 712D 4FA8 C564  4D96 5E06 C9CC ECFA 19C5



_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#3 lore raw
In reply to Michal Kolesar
Quoted 37 lines

Michal Kolesar wrote:

Hi all,

I have installed 2.4.5 kernel, Debian Potato.

my tc script:
#!/bin/bash

tc qdisc add dev eth1 root handle 20: cbq bandwidth 10Mbit avpkt 1000 echo root
tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit rate \
10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000 echo class
tc class add dev eth1 parent 20:1 classid 20:100 cbq bandwidth 10Mbit rate \
5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \
bounded
echo 100
tc class add dev eth1 parent 20:1 classid 20:200 cbq bandwidth 10Mbit rate \
5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \
bounded
echo 200
tc qdisc add dev eth1 parent 20:100 sfq quantum 1514b perturb 15 echo sfq100
tc qdisc add dev eth1 parent 20:200 sfq quantum 1514b perturb 15 echo sfq200
tc filter add dev eth1 parent 20:0 prio 25 u32 match ip src 192.168.0.7 flowid 20:100
echo filter100
tc filter add dev eth1 parent 20:0 prio 50 u32 match ip src 192.168.0.0/24 flowid 20:100
echo filter200

Quoted 12 lines

after running my tc script:
0 root@gateway:/root# source /etc/init.d/tc
root
class
100
200
sfq100
sfq200
RTNETLINK answers: Invalid argument
filter100
RTNETLINK answers: Invalid argument
filter200

Do you use modules? No: make sure you enabled everything, Yes: make sure te modules are loaded.

Stef

Signature · 6 lines
[email protected]        [email protected]
More QOS info : http://users.belgacom.net/staf/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#4 lore raw
In reply to Michal Kolesar
Quoted 37 lines

Michal Kolesar wrote:

Hi all,

I have installed 2.4.5 kernel, Debian Potato.

my tc script:
#!/bin/bash

tc qdisc add dev eth1 root handle 20: cbq bandwidth 10Mbit avpkt 1000 echo root
tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit rate \
10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000 echo class
tc class add dev eth1 parent 20:1 classid 20:100 cbq bandwidth 10Mbit rate \
5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \
bounded
echo 100
tc class add dev eth1 parent 20:1 classid 20:200 cbq bandwidth 10Mbit rate \
5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \
bounded
echo 200
tc qdisc add dev eth1 parent 20:100 sfq quantum 1514b perturb 15 echo sfq100
tc qdisc add dev eth1 parent 20:200 sfq quantum 1514b perturb 15 echo sfq200
tc filter add dev eth1 parent 20:0 prio 25 u32 match ip src 192.168.0.7 flowid 20:100
echo filter100
tc filter add dev eth1 parent 20:0 prio 50 u32 match ip src 192.168.0.0/24 flowid 20:100
echo filter200

Quoted 12 lines

after running my tc script:
0 root@gateway:/root# source /etc/init.d/tc
root
class
100
200
sfq100
sfq200
RTNETLINK answers: Invalid argument
filter100
RTNETLINK answers: Invalid argument
filter200

Do you use modules? No: make sure you enabled everything, Yes: make sure te modules are loaded.

Stef

Signature · 7 lines
[email protected]        [email protected]
More QOS info : http://users.belgacom.net/staf/


_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#5 lore raw
In reply to Michal Kolesar

i'm fairly new to the list and just encountered this problem..

i have 2 machines, one w/ kernel 2.4.2-2 and the other w/ 2.4.12. the kernel config files are the same on both machines w/ all the same stuff compiled in. however, the 2.4.12 machine can't run tc, ip, etc (get RTNETLINK answers: Invalid argument) and the 2.4.2-2 machine has no problems.

does anyone know why or how to fix. i really don't want to downgrade my kernel if i don't have to.

thanks,
david parks
--------------------------------------------------------
when good things happen to bad people...
--------------------------------------------------------
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#6 lore raw
In reply to Michal Kolesar
Quoted 7 lines · David E. Parks

i'm fairly new to the list and just encountered this problem..

i have 2 machines, one w/ kernel 2.4.2-2 and the other w/ 2.4.12. the kernel config files are the same on both machines w/ all the same stuff compiled in. however, the 2.4.12 machine can't run tc, ip, etc (get RTNETLINK answers: Invalid argument) and the 2.4.2-2 machine has no problems.

Are you really sure they are the same? Did you run 'make oldconfig' on 2.4.12? Do your modules work?

Regards,

bert

Signature · 6 lines
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#7 lore raw
In reply to Michal Kolesar

I get the same error message also, but for a non-related reason, maybe. I am trying to run RX/TX load balancing on a RedHat a 6.2 download server. The version of iproute is iproute-2.2.4-2.
When I invoke the command "ip rule list", I get the error message:
RTNETLINK answers: Invalid argument
Dump terminated

My ifconfig output shows that everything is being processed by eth0.

I even downloaded iproute2-current.tar.gz and ran a make, it did not seem to upgrade the /sbin/ip file. OR, I did not configure it correctly.

My /etc/rc.d/rc.local file reads:
ip rule add from xxx.xx.xxx.xxx table 30
ip rule add from xxx.xx.xxx.xxx table 31
ip rule add from xxx.xx.xxx.xxx table 32

ip route add xxx.xx.xxx.x/28 dev eth0 table 30
ip route add xxx.xx.xxx.x/28 dev eth1 table 31
ip route add xxx.xx.xxx.x/28 dev eth2 table 32

ip route add xxx.xx.xxx.x/28 equalize nexthop dev eth0 nexthop dev eth1 nexthop dev eth2

ip route add default via xxx.xx.xxx.x dev eth0 table 30 ip route add default via xxx.xx.xxx.x dev eth1 table 31 ip route add default via xxx.xx.xxx.x dev eth2 table 32

ip route add default equalize nexthop via xxx.xx.xxx.x dev eth0 nexthop via xxx.xx.xxx.x dev eth1 nexthop via xxx.xx.xxx.x dev eth2

My /etc/sysconfig/network file has the following:
NETWORKING=yes
HOSTNAME=server.domainname.com
DOMAINNAME=activision.com
GATEWAY=xxx.xx.xxx.xxx
GATEWAYDEV=eth0
CONFIG_IP_ROUTE_MULTIPATH=yes
CONFIG_IP_MULTIPLE_TABLES=yes
CONFIG_IP_ADVANCED_ROUTER=yes

Can the load balancing I am attempting work on RedHat Linux 6.2?

Thanks,
Robert.

+++++++++++++++++++++++++++++++++++++++
-----Original Message-----
From: bert hubert [mailto:[email protected]]
Sent: Tuesday, March 05, 2002 1:53 PM
To: David E. Parks
Cc: [email protected]
Subject: Re: [LARTC] RTNETLINK answers: Invalid argument

Quoted 7 lines · David E. Parks

i'm fairly new to the list and just encountered this problem..

i have 2 machines, one w/ kernel 2.4.2-2 and the other w/ 2.4.12. the kernel config files are the same on both machines w/ all the same stuff compiled in. however, the 2.4.12 machine can't run tc, ip, etc (get RTNETLINK answers: Invalid argument) and the 2.4.2-2 machine has no problems.

Are you really sure they are the same? Did you run 'make oldconfig' on 2.4.12? Do your modules work?

Regards,

bert

Signature · 6 lines
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#8 lore raw
In reply to Michal Kolesar

Hi All,
concerning the problem when running the "ip ru ls" command.
I faced with the same problem, and I solved it by making sure to include the following settings into the kernel configuration (2.4.18):

CONFIG_IP_ADVANCED_ROUTER=y <===
CONFIG_IP_MULTIPLE_TABLES=y <===
CONFIG_IP_ROUTE_FWMARK=y
CONFIG_IP_ROUTE_NAT=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_TOS=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IP_ROUTE_LARGE_TABLES=y

The new kernel is then able to perform policy routing in the correct way (iproute2-010824)

ciao
- Alberto

-----Original Message-----
From: ext Richardson, Robert [mailto:[email protected]]
Sent: Mittwoch, 6. März 2002 1:53
To: 'bert hubert'; David E. Parks
Cc: [email protected]
Subject: RE: [LARTC] RTNETLINK answers: Invalid argument

I get the same error message also, but for a non-related reason, maybe. I am trying to run RX/TX load balancing on a RedHat a 6.2 download server. The version of iproute is iproute-2.2.4-2.
When I invoke the command "ip rule list", I get the error message:
RTNETLINK answers: Invalid argument
Dump terminated

My ifconfig output shows that everything is being processed by eth0.

I even downloaded iproute2-current.tar.gz and ran a make, it did not seem to upgrade the /sbin/ip file. OR, I did not configure it correctly.

My /etc/rc.d/rc.local file reads:
ip rule add from xxx.xx.xxx.xxx table 30
ip rule add from xxx.xx.xxx.xxx table 31
ip rule add from xxx.xx.xxx.xxx table 32

ip route add xxx.xx.xxx.x/28 dev eth0 table 30
ip route add xxx.xx.xxx.x/28 dev eth1 table 31
ip route add xxx.xx.xxx.x/28 dev eth2 table 32

ip route add xxx.xx.xxx.x/28 equalize nexthop dev eth0 nexthop dev eth1 nexthop dev eth2

ip route add default via xxx.xx.xxx.x dev eth0 table 30 ip route add default via xxx.xx.xxx.x dev eth1 table 31 ip route add default via xxx.xx.xxx.x dev eth2 table 32

ip route add default equalize nexthop via xxx.xx.xxx.x dev eth0 nexthop via xxx.xx.xxx.x dev eth1 nexthop via xxx.xx.xxx.x dev eth2

My /etc/sysconfig/network file has the following:
NETWORKING=yes
HOSTNAME=server.domainname.com
DOMAINNAME=activision.com
GATEWAY=xxx.xx.xxx.xxx
GATEWAYDEV=eth0
CONFIG_IP_ROUTE_MULTIPATH=yes
CONFIG_IP_MULTIPLE_TABLES=yes
CONFIG_IP_ADVANCED_ROUTER=yes

Can the load balancing I am attempting work on RedHat Linux 6.2?

Thanks,
Robert.

+++++++++++++++++++++++++++++++++++++++
-----Original Message-----
From: bert hubert [ mailto:[email protected]]
Sent: Tuesday, March 05, 2002 1:53 PM
To: David E. Parks
Cc: [email protected]
Subject: Re: [LARTC] RTNETLINK answers: Invalid argument

Quoted 7 lines · David E. Parks

i'm fairly new to the list and just encountered this problem..

i have 2 machines, one w/ kernel 2.4.2-2 and the other w/ 2.4.12. the kernel config files are the same on both machines w/ all the same stuff compiled in. however, the 2.4.12 machine can't run tc, ip, etc (get RTNETLINK answers: Invalid argument) and the 2.4.2-2 machine has no problems.

Are you really sure they are the same? Did you run 'make oldconfig' on 2.4.12? Do your modules work?

Regards,

bert

Signature · 10 lines
http://www.PowerDNS.com          Versatile DNS Software & Services 
http://www.tk                              the dot in .tk 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO 
_______________________________________________ 
LARTC mailing list / [email protected] 
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ 

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#9 lore raw
In reply to Michal Kolesar

Dear sir(lady)
I used iproute2-2.4.7-now-ss011019-donotuse.tar.gz and iputils-ss011202.tar.gz for linux kernel 2.4.18 iptables 1.2.6

CONFIG_NETLINK_DEV=y

CONFIG_IP_NF_TARGET_NETLINK=y
i can use any command option about "ip"
but I can not use "tc" such as
tc qdisc add dev eth0 parent 10:100 sfq quantum 1514b perturb 15
the error message is "RTNETLINK answers: Invalid argument"
please tell me how can i do?

_________________________________________________________
Do You Yahoo!?
摊开你的掌心 让我看看你
http://sweepstakes.yahoo.com/2002cnuser
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#10 lore raw
In reply to Michal Kolesar
Quoted 7 lines · hanhbnetfilter

Dear sir(lady)
I used iproute2-2.4.7-now-ss011019-donotuse.tar.gz and iputils-ss011202.tar.gz for linux kernel 2.4.18 iptables 1.2.6

CONFIG_NETLINK_DEV=y

Quoted 8 lines

CONFIG_IP_NF_TARGET_NETLINK=y
i can use any command option about "ip"
but I can not use "tc" such as
tc qdisc add dev eth0 parent 10:100 sfq quantum 1514b perturb 15
the error message is "RTNETLINK answers: Invalid argument"
please tell me how can i do?

Do you have a kernel with QOS support enabled ?

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#11 lore raw

Re: [LARTC] RTNETLINK answers: invalid argument

In reply to Michal Kolesar

Hello Ana,

There could me multiple reasons for the same. Try shortlisting the same
from here for a start.

* Is your kernel patched with htb support
* Upgraded to 2.4.20> preferably 2.4.21 which has wonderful support for HTB inbuilt.
* Does your version of tc support the same.
* If not google for htb and get the tc binary from their homepage.

Trevor

Quoted 16 lines · Ana Carolina Alonso

Hello, I had configure my router linux which has Suse 7.2, kernel 2.4.21. I had installed the QoS support into the kernel. When I run the comand tc to create a CBQ qdisc, this work very well, but when I run tc to create the HTB qdisc I receive next message:

RTNETLINK answers: Invalid argument

when my comand is:

tc qdisc add dev eth0 root handle 1:htb

Thanks in advance!

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Signature · 9 lines
( >-    GNU/LINUX, It's all about CHOICE      -< )
/~\    __  [email protected]  __   /~\
|  \) /  Pre Sales Consultant - Red Hat     \ (/ |
|_|_  \    9820349221(M) | 22881326(O)      / _|_|
       \___________________________________/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#12 lore raw

[LARTC] RTNETLINK answers: invalid argument

In reply to Michal Kolesar

Hello, I had configure my router linux which has Suse 7.2, kernel 2.4.21. I had installed the QoS support into the kernel. When I run the comand tc to create a CBQ qdisc, this work very well, but when I run tc to create the HTB qdisc I receive next message:

RTNETLINK answers: Invalid argument

when my comand is:

tc qdisc add dev eth0 root handle 1:htb

Thanks in advance!

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#13 lore raw

Re: [LARTC] RTNETLINK answers: invalid argument

In reply to Michal Kolesar
Quoted 10 lines · Ana Carolina Alonso

Hello, I had configure my router linux which has Suse 7.2, kernel 2.4.21. I had installed the QoS support into the kernel. When I run the comand tc to create a CBQ qdisc, this work very well, but when I run tc to create the HTB qdisc I receive next message:

RTNETLINK answers: Invalid argument

when my comand is:

tc qdisc add dev eth0 root handle 1:htb

You need a tc binary with support. You can download one from www.docum.org or form the htb homepage.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#14 lore raw

[LARTC] RTNETLINK answers: Invalid argument usign wondershaper

In reply to Michal Kolesar

Hi,

I compiled the last iproute2 version: iproute2-2.4.7-now-ss020116 and tried to use wondershaper.

It seams that I missed something so that I can not use htb.

# tc qdisc add dev eth0 root handle 1: htb
RTNETLINK answers: Invalid argument

The kernel is compiled with all QoS modules and the module sch_htb is loaded. Do I need to load any other modules before running this tc command ?

Thanks,

Luciano Lima

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#15 lore raw

Re: [LARTC] RTNETLINK answers: Invalid argument usign wondershaper

In reply to Michal Kolesar
Quoted 5 lines · Luciano Lima

Hi,

I compiled the last iproute2 version: iproute2-2.4.7-now-ss020116 and tried to use wondershaper.

Quoted 8 lines

It seams that I missed something so that I can not use htb.

# tc qdisc add dev eth0 root handle 1: htb
RTNETLINK answers: Invalid argument

The kernel is compiled with all QoS modules and the module sch_htb is loaded. Do I need to load any other modules before running this tc command ?

You need a tc binary with htb support. You can find the patch on the htb website or a precompiled tc binary on the website of htb or on www.docum.org.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#16 lore raw
In reply to Michal Kolesar

Hi,

On this Fedora Core Devel (Raw Hide) system, if I boot on a distribution kernel (based on 2.6.12rc1-bk2) the network is fine. If I build a custom 2.6.12-rc1-V0.7.43-06 or 2.6.12-rc1-mm4 kernel the network interface fails to initialise on boot with RTNETLINK answers: Invalid argument.

What can possibly cause this ?

My kernel config should be mostly fine - I used it extensively at a time and diffing it with Red Hat does not show any obvious suspects (to me)). Thoug I haven't built any custom kernels for a few months, so possibly some Fedora or kernel bits changed.

My iproute version should be fairly current : iproute-2.6.11-1

I've attached an strace of the problem command if it can help shed some light on this

Regards,

Signature · 1 line
Nicolas Mailhot

execve("/sbin/ip", ["/sbin/ip", "route", "replace", "169.254.0.0/16", "dev", "eth0"], [/* 36 vars */]) = 0 uname({sys="Linux", node="rousalka.dyndns.org", ...}) = 0

brk(0)                                  = 0x8067000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=58029, ...}) = 0
old_mmap(NULL, 58029, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f58000
close(3) = 0
open("/lib/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320Cm\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=76336, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f57000

old_mmap(0x6d2000, 75880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x6d2000
old_mmap(0x6e1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x6e1000
old_mmap(0x6e3000, 6248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x6e3000

close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\332>\277"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1465764, ...}) = 0
old_mmap(0xbdf000, 1190876, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xbdf000
old_mmap(0xcfc000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11d000) = 0xcfc000
old_mmap(0xd00000, 7132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd00000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f56000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f566c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0

mprotect(0x6e1000, 4096, PROT_READ)     = 0
mprotect(0xcfc000, 8192, PROT_READ)     = 0
mprotect(0xbdb000, 4096, PROT_READ)     = 0
munmap(0xb7f58000, 58029)               = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 3

setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) = 0
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, pid=5665, groups=00000000}, [12]) = 0
time(NULL) = 1112445811
sendto(3, "\24\0\0\0\22\0\1\3t\223NB\0\0\0\0\0\200\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\344\0\0\0\20\0\2\0t\223NB!\26\0\0\0Z\4\3\1\0\0\0\10\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 696
brk(0) = 0x8067000
brk(0x8088000) = 0x8088000
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0t\223NB!\26\0\0\0\0\0\0\1\0\0\0\10\0\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 20 sendmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{",\0\0\0\30\0\5\5u\223NB\0\0\0\0\2\20\0\0\376\3\375\1\0"..., 44}], msg_controllen=0, msg_flags=0}, 0) = 44 recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0u\223NB!\26\0\0\352\377\377\377,\0\0\0\30"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36

dup(2)                                  = 4
fcntl64(4, F_GETFL)                     = 0x8001 (flags O_WRONLY|O_LARGEFILE)
close(4)                                = 0

write(2, "RTNETLINK answers: Invalid argum"..., 36RTNETLINK answers: Invalid argument ) = 36
exit_group(2) = ?

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc